import request from '@/utils/request'

// 查询退役军人列表
export function listRetirefm(query) {
  return request({
    url: '/manager/retirefm/list',
    method: 'get',
    params: query
  })
}

// 查询退役军人详细
export function getRetirefm(id) {
  return request({
    url: '/manager/retirefm/' + id,
    method: 'get'
  })
}

// 新增退役军人
export function addRetirefm(data) {
  return request({
    url: '/manager/retirefm',
    method: 'post',
    data: data
  })
}

// 修改退役军人
export function updateRetirefm(data) {
  return request({
    url: '/manager/retirefm',
    method: 'put',
    data: data
  })
}

// 删除退役军人
export function delRetirefm(id) {
  return request({
    url: '/manager/retirefm/' + id,
    method: 'delete'
  })
}

// 导出退役军人
export function exportRetirefm(query) {
  return request({
    url: '/manager/retirefm/export',
    method: 'get',
    params: query
  })
}

// 省市区
export function cityTree(){
  return request({
    url: '/provinceToDistrict/getCityTree',
    method: 'get'
  })
}

// 职级树
export function rankTree(){
  return request({
    url: '/rank/getRankTree',
    method: 'get'
  })
}
